package top.ranzhang.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.aspectj.bridge.Constants;
import top.ranzhang.bean.dto.PageChildDTO;
import top.ranzhang.bean.entity.Child;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.ranzhang.bean.vo.PageChildVO;

import java.time.LocalDate;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ran
 * @since 2025-04-14
 */
@Mapper
public interface ChildMapper extends BaseMapper<Child> {

    IPage<PageChildVO> ToPage(@Param("page") IPage<PageChildDTO> page, @Param("pageChildDTO") PageChildDTO pageChildDTO);

    IPage<PageChildVO> getBirthdayRange(IPage<PageChildVO> page, PageChildDTO pageChildDTO, LocalDate start,LocalDate end,String nowYear);
}
